import request from '@/utils/request'

// 查询追踪记录列表
export function listTraceHistory(query) {
  return request({
    url: '/teach/traceHistory/list',
    method: 'get',
    params: query
  })
}

// 查询追踪记录详细
export function getTraceHistory(id) {
  return request({
    url: '/teach/traceHistory/' + id,
    method: 'get'
  })
}
export function getTraceHistoryList(studentId) {
  return request({
    url: '/teach/traceHistory/list/' + studentId,
    method: 'get'
  })
}

// 新增追踪记录
export function addTraceHistory(data) {
  return request({
    url: '/teach/traceHistory',
    method: 'post',
    data: data
  })
}

// 修改追踪记录
export function updateTraceHistory(data) {
  return request({
    url: '/teach/traceHistory',
    method: 'put',
    data: data
  })
}

// 删除追踪记录
export function delTraceHistory(id) {
  return request({
    url: '/teach/traceHistory/' + id,
    method: 'delete'
  })
}
